package com.ququ.syb.business.withdraw.fegin;

import com.ququ.common.result.Result;
import com.ququ.syb.common.pojo.WithdrawOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "withdraworder")
public interface WithdrawOrderFegin {

    @RequestMapping(value = "/query")
    Result<WithdrawOrder> queryWithdrawOrder(@RequestParam(value = "tradenum") String tradenum);

    @RequestMapping(value = "/query")
    Result<WithdrawOrder> queryWithdrawOrderByOutOrderNum(@RequestParam(value = "outordernum") String outordernum);

    @RequestMapping(value = "/list")
    Result<List<WithdrawOrder>> listWithdrawOrderByPayTradenum(@RequestParam(value = "paytradenum") String paytradenum);

    @RequestMapping(value = "/save",method = RequestMethod.POST)
    Result<WithdrawOrder> saveWithdrawOrder(@RequestBody WithdrawOrder withdrawOrder);

    @RequestMapping(value = "/update", method = RequestMethod.POST)
    Result<WithdrawOrder> updateWithdrawOrder(@RequestBody WithdrawOrder withdrawOrder);
}
